/**************************************************************************/
/*                                                                        */
/* Copyright (c) Sinoembed Technology Co.,Ltd.           */
/*  */
/*                                                                        */
/*                                                                        */
/*    created:    2012-6-27                                             */ 
/*    filename:   CSinoembedPuzzleWnd.h                                          */ 
/*    author:     Derek Huang                                                  */  
/*    purpose:                                                            */ 
/*                                                                        */
/* ************************************************************************/

#ifndef __CE_LANGUAGE_WND_H__
#define __CE_LANGUAGE_WND_H__
#include <mzfc_inc.h>
//#include "iUiButton.h"
#include "UiLanguageTopBar.h"
#include "UiLanguageMidBar.h"
#include "UiLanguageDownBar.h"
#include "TBInvokeInterface.h"

typedef enum _tagLanguageWndDisplay
{
	LANGUAGE_TOPBAR_WND = 0,
	LANGUAGE_MIDBAR_WND,
	LANGUAGE_DOWNBAR_WND,
	MAX_LANGUAGE_WND,
} LANGUAGE_WND;

class CLanguageWnd : public CMzWndEx
{
public:
	CLanguageWnd();
	virtual ~CLanguageWnd();
	virtual void PaintWin(HDC hdc, RECT* prcUpdate /* = NULL */);
	virtual BOOL OnInitDialog();
	virtual  void OnMzCommand(WPARAM wParam, LPARAM lParam);
	virtual LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);
	virtual void OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual void DeleteImages();
	void DestroyWindow();
	void AnimateWindowEx_In( UINT nAnimType, bool bShow );
private:

public:
	BOOL InitBackgrandImages();
	void LoadiInterItem();
	void OnMenu();
	void OnExit();
//	static void APP_MPEG_CbkFunc(PROTOCAL_INFO, BYTE);
#ifdef MERGER_APP_TO_SHELL
	BOOL Create();
#endif

public:
	HDC				m_hBakDC;
	ImagingHelper	*m_LanguageWndBG;
	HBITMAP			m_hBitmapBakDC;
public:
	UiWin				m_uiWin;
	UiLanguageTopBar	m_uiTopBar;
	UiLanguageMidBar	m_uiMidBar;
	UiLanguageDownBar	m_uiDownBar;
	
	BOOL ReloadBkgnd();
};


#endif
